import java.util.Scanner;

public class PhonePra {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个电话号码：");
        String phone = scanner.next();
        //获取前三个prefix
        String prefix = phone.substring(0, 3);
        //获取后四位suffix
        String suffix = phone.substring(7, 11);
        //拼接
        String NewPhone = prefix + "****" + suffix;

        System.out.println(phone);
        System.out.println(NewPhone);
    }
}